//
//  AboutUsViewController.m
//  Funny
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 King. All rights reserved.
//

#import "AboutUsViewController.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView *backImg= [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 66*H)];
    [self.view addSubview:backImg];
    backImg.image = [UIImage imageNamed:@"back1.png"];
    
    UIButton *back = [UIButton buttonWithFrame:CGRectMake(10, 25, 30, 30) color:nil title:@"  " type:UIButtonTypeSystem target:self action:@selector(backClickWithBtn:) event:UIControlEventTouchUpInside cornerRadius:0];
    [back setImage:[UIImage imageNamed:@"btn_back@3x.png"] forState:UIControlStateNormal];
    back.tintColor = [UIColor whiteColor];
    [self.view addSubview:back];
    
    NSArray *nameArr = @[@"金运通",@"孙雪丽",@"范有政"];
    NSArray *picImg = @[@"22222.png",@"11111.png",@"33333.png"];
    for (int i = 0; i < 3; i++) {
        CGFloat x = 80.0 * i + 80;
        CGFloat y = 200 * H;
        UIImageView *iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(x * W, y, 60, 60)];
        iconImageView.layer.masksToBounds = YES;
        iconImageView.layer.cornerRadius = 30;
        iconImageView.image = [UIImage imageNamed:picImg[i]];
        [self.view addSubview:iconImageView];
        UILabel *nameLable = [[UILabel alloc]initWithFrame:CGRectMake(x, y+ 60, 60, 25)];
        nameLable.text = nameArr[i];
        nameLable.textAlignment = NSTextAlignmentCenter;
        nameLable.font = [UIFont systemFontOfSize:12];
        [self.view addSubview:nameLable];
        
    }
    
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(140*W, 80*H, 100*W, 100*H)];
    imageView.image = [UIImage imageNamed:@"108.png"];
    imageView.layer.masksToBounds = YES;
    imageView.layer.cornerRadius = 10;
    [self.view addSubview:imageView];
    
    UILabel *aboutLable = [[UILabel alloc]initWithFrame:CGRectMake(20*W, 300*H, self.view.bounds.size.width - 40*W, 40*H)];
    aboutLable.text = @"关于我们";
    aboutLable.textAlignment = NSTextAlignmentCenter;
    aboutLable.font = [UIFont systemFontOfSize:17];
    aboutLable.layer.masksToBounds = YES;
    aboutLable.layer.cornerRadius = 8;
    [self.view addSubview:aboutLable];
    
    UILabel *infoLable = [[UILabel alloc]initWithFrame:CGRectMake(20*W, 350*H, self.view.bounds.size.width - 40*W, 200*H)];

    infoLable.layer.masksToBounds = YES;
    infoLable.layer.cornerRadius = 8;
    infoLable.text = @"      我们是一支年轻又富有创造力的团队，团队成员都是来自国内的优秀iOS开发者，这是我们做的第一款旅游App，为您呈现全球各地的旅游信息，内容丰富，种类繁多。可能有很多不足的地方，未来我们会更加努力，让您更加满意。\n     如果您有什么问题或是建议，欢迎随时联系我们！";
    infoLable.numberOfLines = 0;
    infoLable.backgroundColor = [UIColor colorWithRed:49 / 255.0 green:202 / 255.0 blue:232 / 255.0 alpha:1.0];
    [self.view addSubview:infoLable];
    
    UILabel *contactLable = [[UILabel alloc]initWithFrame:CGRectMake(20*W, 560*H, self.view.bounds.size.width - 40 * W,80 * H)];
    contactLable.layer.masksToBounds = YES;
    contactLable.layer.cornerRadius = 8;
    contactLable.numberOfLines = 0;
    contactLable.text = @"电话：13162683072\n\n邮箱：13162683072@163.com";
    [self.view addSubview:contactLable];
    
    
    
    // Do any additional setup after loading the view.
}

- (void)backClickWithBtn:(UIButton *)btn
{
    [self dismissViewControllerAnimated:NO completion:^{
        
    }];
}

- (void)viewWillAppear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
